using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DTN.Core.Utilities;
using System.Data.SqlClient;
namespace com.dtn.deals
{
	public class tbl_Images
	{
		private System.Int32 _ID;
		public System.Int32 ID
		{
			get { return this._ID; }		
			set { this._ID = value; }
		}
		private System.Int32 _proId;
		public System.Int32 proId
		{
			get { return this._proId; }		
			set { this._proId = value; }
		}
		private System.String _imageTitle;
		public System.String imageTitle
		{
			get { return this._imageTitle; }		
			set { this._imageTitle = value; }
		}
		private System.String _listImage;
		public System.String listImage
		{
			get { return this._listImage; }		
			set { this._listImage = value; }
		}
		private System.DateTime _cDate;
		public System.DateTime cDate
		{
			get { return this._cDate; }		
			set { this._cDate = value; }
		}

        private System.String _parth;
        public System.String parth
        {
            get { return this._parth; }
            set { this._parth = value; }
        }
        private System.Int32 _type;
        public System.Int32 type
        {
            get { return this._type; }
            set { this._type = value; }
        }

        public tbl_Images()
		{
		}
		public tbl_Images(DataRow info)
		{
			_ID = ConvertUtility.ToInt32(info["ID"]);
			_proId = ConvertUtility.ToInt32(info["proId"]);
			_imageTitle = ConvertUtility.ToString(info["imageTitle"]);
			_parth = ConvertUtility.ToString(info["parth"]);
			_listImage = ConvertUtility.ToString(info["listImage"]);
			_cDate = ConvertUtility.ToDateTime(info["cDate"]);
			_type = ConvertUtility.ToInt32(info["Type"]);
		}
        public tbl_Images(DataRowView info)
        {
            _ID = ConvertUtility.ToInt32(info["ID"]);
            _proId = ConvertUtility.ToInt32(info["proId"]);
            _imageTitle = ConvertUtility.ToString(info["imageTitle"]);
            _parth = ConvertUtility.ToString(info["parth"]);
            _listImage = ConvertUtility.ToString(info["listImage"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
            _type = ConvertUtility.ToInt32(info["Type"]);
        }
        public tbl_Images(SqlDataReader info)
		{
            _ID = ConvertUtility.ToInt32(info["ID"]);
            _proId = ConvertUtility.ToInt32(info["proId"]);
            _imageTitle = ConvertUtility.ToString(info["imageTitle"]);
            _parth = ConvertUtility.ToString(info["parth"]);
            _listImage = ConvertUtility.ToString(info["listImage"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
            _type = ConvertUtility.ToInt32(info["Type"]);
		}
	}
}
